package info.erge.sort;

public class Student implements Comparable<Student> {
    private short age;

    public Student(short age) {
        this.age = age;
    }

    @Override
    public int compareTo(Student o) {
        return this.age - o.age;
    }

    @Override
    public String toString() {
        return String.format("age:%d", age);
    }
}